package com.ruoyi.voucher.mapper;

import java.util.List;
import com.ruoyi.voucher.domain.VoucherAttachment;

/**
 * 凭证附件Mapper接口
 * 
 * @author ruoyi
 * @date 2025-02-25
 */
public interface VoucherAttachmentMapper 
{
    /**
     * 查询凭证附件
     * 
     * @param attachmentId 凭证附件主键
     * @return 凭证附件
     */
    public VoucherAttachment selectVoucherAttachmentByAttachmentId(Long attachmentId);

    /**
     * 查询凭证附件列表
     * 
     * @param voucherAttachment 凭证附件
     * @return 凭证附件集合
     */
    public List<VoucherAttachment> selectVoucherAttachmentList(VoucherAttachment voucherAttachment);

    /**
     * 新增凭证附件
     * 
     * @param voucherAttachment 凭证附件
     * @return 结果
     */
    public int insertVoucherAttachment(VoucherAttachment voucherAttachment);

    /**
     * 修改凭证附件
     * 
     * @param voucherAttachment 凭证附件
     * @return 结果
     */
    public int updateVoucherAttachment(VoucherAttachment voucherAttachment);

    /**
     * 删除凭证附件
     * 
     * @param attachmentId 凭证附件主键
     * @return 结果
     */
    public int deleteVoucherAttachmentByAttachmentId(Long attachmentId);

    /**
     * 批量删除凭证附件
     * 
     * @param attachmentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteVoucherAttachmentByAttachmentIds(Long[] attachmentIds);
}
